//
//  CTTabBarItem.h
//  CustomTabbar
//
//  Created by 
//  Copyright (c) 2015年 wulanzhou. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface CTTabBarItem : UIButton

@property (nonatomic, strong) UIImageView *imageView;

@property (nonatomic, strong) UILabel *titleLb;

@property (nonatomic, strong) UIImage *normalImage;

@property (nonatomic, strong) UIImage *selectedImage;

@property (nonatomic, strong) UIColor *normalTitleColor;

@property (nonatomic, strong) UIColor *selectedTitleColor;

//设置选中未选中的图片，标题（需要定制选中未选中的颜色，调用下面的方法）
-(void)setNormalImage:(UIImage *)aNormalImage
        selectedImage:(UIImage *)aSelectedImage
                title:(NSString *)aTitle;

//设置选中未选中的图片，选中未选中标题颜色
-(void)setNormalImage:(UIImage *)aNormalImage
        selectedImage:(UIImage *)aSelectedImage
                title:(NSString *)aTitle
     normalTitleColor:(UIColor *)aNormalColor
selectedTitleColor:(UIColor *)aSelectedColor;


- (void)changeSelectedStatus:(BOOL)status;

/**
 *  @author wulanzhou
 *
 *  @brief  动画旋转
 *
 *  @param view     传进来的view
 *  @param duration 动作
 *  @param wait     时间
 *  @param angle    旋转的角度/180
 */
- (void) rotate: (UIView *)view andAnimationDuration: (float) duration andWait:(BOOL) wait andAngle:(int) angle;

/**
 * 添加红色标记
 */
- (void)showBadge;

/**
 * 移除红色标记
 */
- (void)removeBadge;

/**
 * 添加微章
 */
- (UIView *)showBadgeValue:(NSString*)badgeValue;



/**
 * 移除微章
 */
- (void)removeBadgeValue;

@end
